<template>
  <uni-nav-bar title="充值规则" left-icon="left" @clickLeft="navBack" :fixed="true" statusBar></uni-nav-bar>
  <view class="package">
    <view v-html="content"></view>
  </view>
</template>

<script setup lang="ts">
  import { navBack } from '@/utils/navigator';
  import { toPublish } from '@mqtt';
  import { authorMe } from '@/gql/user';
  import { ref } from 'vue';
  import { showLoading } from '@/utils/prompt';
  const content = ref('');
  init()
  function init() {
    showLoading()
    const payload = {
      query: authorMe,
      variables: { code: 'fleetrecharge' },
    };
    toPublish('ql/driver/getMyblock', payload, (obj : any) => {
      const { data } = obj;
      content.value = data.get_myblock.content;
    });
  }
</script>

<style scoped lang="less">
</style>